Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix disableCssAnimation bug when using multiple viewports #610

Merged
merged 2 commits into from
Jun 20, 2022

Conversation

wadackel
Copy link
Collaborator

@wadackel wadackel commented Jun 18, 2022

What does this change?

The bug occurs when using a viewport with hasTouch or isMobile, or when a page reload is performed using the reloadAfterChangeViewport flag. The disableCssAnimation is not enabled for shots taken after a page reload.

I've modified the logic to add an element to disable CSS Animation again on page reload.

How to reproduce

See wadackel/storycap-reproduce-viewport-bug.

Actual Behavior

Default_iPad Default_iPhone11

Expected Behavior (patched)

Default_iPad Default_iPhone11

Notes

In the process of debugging, it was necessary to run yarn link for each package included in monorepo.

I've added an npm script to make this easier.

@wadackel wadackel requested a review from Quramy June 18, 2022 06:49
@Quramy Quramy merged commit aa1a304 into master Jun 20, 2022
@Quramy Quramy deleted the fix/viewport-bugs branch June 20, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants